<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	
	String hostname = "i51";
	
	String sessionId = session.getId();
	String username = (String)session.getAttribute("username");
	session.setAttribute("username","this is set by  "+hostname);
%>


<body>
	<h2> <%=hostname %></h2>
	<div>tomcat集群测试session同步</div>
	<div>
		sessionId= <%=sessionId %>
		<br/>
		getUsername = <%=username %>
	</div>

</body>